<?php
require "dbcon.php";
   $sql='select * from db_emp';
   $result=$db->query($sql);
   $sum=$result->num_rows;  
   $emplist=$result->fetch_all(MYSQLI_BOTH);  
include "emp_html.php";

  $result->free();
   $db->close();

 